<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/templates/templateListar.xhtml">

	<ui:define name="conteudo">
		<ui:param name="actionBean" value="#{relatorioClienteMB}" />
		<p:panel header="Relatório de Clientes">
			<h:form id="frmDialogRelatorio">
				<div align="center">
					<h:panelGrid columns="4" style="text-align:center">

						<p:outputLabel value="Período:" for="datainicial" />
						<p:inputMask value="#{relatorioClienteMB.periodo.dataInicial}"
							required="true" maxlength="8" size="10"
							requiredMessage="Data Inicial é obrigatória!" id="datainicial"
							mask="99/99/9999">
							<f:convertDateTime pattern="dd/MM/yyyy" timeZone="GMT-3" />
						</p:inputMask>

						<p:outputLabel value=" a "></p:outputLabel>

						<p:inputMask id="datafinal" required="true"
							requiredMessage="Data Final é obrigatória"
							value="#{relatorioClienteMB.periodo.dataFinal}" mask="99/99/9999"
							size="10" maxlength="8">
							<f:convertDateTime pattern="dd/MM/yyyy" timeZone="GMT-3" />
						</p:inputMask>


					</h:panelGrid>
					
				</div>
				<div align="center">
				<h:panelGrid columns="3">
						<p:spacer width="60" height="2"></p:spacer>
						<p:commandButton value="Confirma" ajax="false"
							style="text-align:center"
							actionListener="#{relatorioClienteMB.gerarRelatorio}"
							update=":mensagem">
						</p:commandButton>
						<p:commandButton value="Cancela" immediate="true"
							action="#{relatorioClienteMB.sair}" />
					</h:panelGrid>
</div>
			</h:form>
		</p:panel>
	</ui:define>

</ui:composition>